package hndx.controller;

import hndx.feign.Server1Client;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/api")
public class ServerController {
    @Autowired
    Server1Client server1Client;
    @PostMapping("/hello")
    public String hello(){

        return server1Client.hello();
    }
}
